import React from 'react';
import { Select } from '@casstime/bricks';
import { observer } from 'mobx-react';
import ExamplePageStore from '../stores/ExamplePageStore';

interface ITypeSelectProps {
  store: ExamplePageStore;
}
@observer
export default class TypeSelect extends React.Component<ITypeSelectProps, {}> {
  render() {
    return (
      <div>
        <Select
          value={this.props.store.billTypeName}
          onChange={option => this.props.store.changeBillTypeName(option)}
          options={this.props.store.billTypeNameArray}
        />
      </div>
    );
  }
}
